package com.im.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 用户
 *
 * @author yunZhouJiaDi
 */
@Data
@TableName("user")
@Accessors(chain = true)
public class User {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("头像")
    private String icon;

    @ApiModelProperty("性别(1->男, 2->女)")
    private Integer sex;

    @ApiModelProperty("个性签名")
    private String note;

    @ApiModelProperty("验证方式(0:直接加入 1:同意后加好友)")
    private Integer joinType;

    @ApiModelProperty("地区")
    private String areaName;

    @ApiModelProperty("区号")
    private String areaCode;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("最后登录时间")
    private Date lastLoginTime;

    @ApiModelProperty("最后离开时间")
    private Long lastOffTime;

    @ApiModelProperty("帐号状态(1->启用，2->禁用)")
    private Integer status;
}
